<template>
  <div class="wapMain">
    <router-view />
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  beforeRouteEnter: (to, from, next) => {
    if (!localStorage.getItem('lang') && to.path.indexOf('/foundation/wap') >= 0) {
       next(vm => {
        // 通过 `vm` 访问组件实例
        vm.$router.replace('/foundation/wap/language')
      })
      return
    }
    next()
  },
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped>
</style>